package thread.cusproc;

public class Test {
	public static void main(String[] args) {
		WareHouse house = new WareHouse(20);
		
		Consumer c1 = new Consumer(house, 30);
		Consumer c2 = new Consumer(house, 60);
		Consumer c3 = new Consumer(house, 20);
		
		Producer p1 = new Producer(house, 40);
		Producer p2 = new Producer(house, 10);
		Producer p3 = new Producer(house, 10);
		Producer p4 = new Producer(house, 15);
		Producer p5 = new Producer(house, 50);
		
		c1.start();
		c2.start();
		c3.start();
		
		p1.start();
		p2.start();
		p3.start();
		p4.start();
		p5.start();
		
	}
}
